package com.ebelter.btcomlib.models.bluetooth.products.temperature2.bean;

import com.ebelter.btcomlib.models.db.AppDatabase;
import com.ebelter.btcomlib.utils.TimeUtils;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;


@Table(database = AppDatabase.class)
public class TemMesureResult2His extends BaseModel{

    public static final String TAG = "TemMesureResult2";
    @PrimaryKey(autoincrement = true)//ID自增
    public long id;

    /*** 测试时间，int类型，用于排序 ***/
    @Column
    public long measureTime;

    @Column
    public String measureTimeStr;

    @Column
    public String authKey;


//    00：耳温C标记
//01：耳温F标记
//02：额温C标记
//03：额温F标记
    @Column
    public int com;


    @Column
    public int currentNum;

    @Column
    public int totalNum;


    /*** 温度 ***/
    @Column
    public float temperature;

    public TemMesureResult2His(long measureTime, float temperature) {
        this.measureTime = measureTime;
        this.temperature = temperature;
        this.measureTimeStr = TimeUtils.formatTime1(measureTime);
    }

    public TemMesureResult2His() {
    }


    @Override
    public String toString() {
        return "TemMesureResult2His{" +
                "id=" + id +
                ", measureTime=" + measureTime +
                ", measureTimeStr='" + measureTimeStr + '\'' +
                ", authKey='" + authKey + '\'' +
                ", com=" + com +
                ", currentNum=" + currentNum +
                ", totalNum=" + totalNum +
                ", temperature=" + temperature +
                '}';
    }
}
